package com.car.dal.dao.turnover;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.TgTurnover;
import com.car.util.Page;
@Repository
public class TgTurnoverDaoImpl extends IbatisCommonDao<TgTurnover, Long> implements TgTurnoverDao {

	@Override
	public List<TgTurnover> findByLoginName(TgTurnover turnover) {
		return this.queryForEntityList(TgTurnover.class,"getturnoverByLoginName", turnover);
	}

	@Override
	public Integer getPreCountByType(TgTurnover turnover) {
		return this.queryForInteger("getCountturnoverByType", turnover);
	}

}
